package part4;

import java.util.Random;

/**
 * @author wcj
 * @Date 2021/5/12 15:49
 * @Version 1.0
 */
public class Part48 {
    public static void main(String[] args) {
        Random random = new Random(47);
        for (int i = 0; i < 20; i++) {
            int c = random.nextInt(26) + 'a';
            System.out.println((char) c + "," + c);
            switch (c) {
                case 'a':
                    System.out.println("当前随机字母为:a");
                    break;
                case 'b':
                    System.out.println("当前随机字母为:b");
                    break;
                case 'c':
                    System.out.println("当前随机字母为:c");
                    break;
                default:
                    System.out.println("当前随机字母为:" + c);
            }
        }
    }
}
